package com.itxz.utils;

import com.itxz.handler.MyErrorHandler;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathFactory;

/**
 * Xml工厂集合
 *
 * @author ldt
 * @date 2019/11/20 17:12
 */
public class XPathUtils {

    private final static XPathFactory xpf;

    static {
        xpf = XPathFactory.newInstance();
    }

    public static XPath newXPath(){
        return xpf.newXPath();
    }
}
